package com.wsbombphoto.model;

import javax.xml.bind.annotation.XmlRootElement;

@XmlRootElement
public class Likes {

	private int idLike;
	private String dateLike;
	private int idMarketing;

	public int getIdLike() {
		return idLike;
	}

	public void setIdLike(int idLike) {
		this.idLike = idLike;
	}

	public String getDateLike() {
		return dateLike;
	}

	public void setDateLike(String dateLike) {
		this.dateLike = dateLike;
	}

	public int getIdMarketing() {
		return idMarketing;
	}

	public void setIdMarketing(int idMarketing) {
		this.idMarketing = idMarketing;
	}

	@Override
	public int hashCode() {
		final int prime = 31;
		int result = 1;
		result = prime * result
				+ ((dateLike == null) ? 0 : dateLike.hashCode());
		result = prime * result + idLike;
		result = prime * result + idMarketing;
		return result;
	}

	@Override
	public boolean equals(Object obj) {
		if (this == obj)
			return true;
		if (obj == null)
			return false;
		if (getClass() != obj.getClass())
			return false;
		Likes other = (Likes) obj;
		if (dateLike == null) {
			if (other.dateLike != null)
				return false;
		} else if (!dateLike.equals(other.dateLike))
			return false;
		if (idLike != other.idLike)
			return false;
		if (idMarketing != other.idMarketing)
			return false;
		return true;
	}

	@Override
	public String toString() {
		return "Likes [idLike=" + idLike + ", dateLike=" + dateLike
				+ ", idMarketing=" + idMarketing + "]";
	}

}
